set -x
if [ $# -ne 1 ];then
    echo "The number of parameter must be only one"
    exit 1
fi

if [[ $1 -gt 32 || $1 -le 0 ]];then
    echo "param must be ranged from [1, 32]."
    exit 1
fi

for((i=0;i<$1;i++))
do

    ./MediaCodec ../src/config/cfg$i.ini &

done
wait

